/*
 * LuaAction.java
 * Created by: Crecen Carr (JakeSamiRulz)
 *
 * AnimationSystems way of dealing with Lua Fuctions...
 */

package AnimationSystem;

class LuaAction{
    public String function;
    public int button;
    public char bttn;
    public int group;
    public int groupchange;
    
    LuaAction(){
        bttn = '0';
        function = "";
        button = 0;
        group = 0;
        groupchange = 0;
    }
    
    LuaAction(int groupid){
        bttn = '0';
        function = "";
        button = 0;
        group = groupid;
        groupchange = groupid;
    }
    
    public void fixButtons(){
        if(bttn == 'U')
            button = -1;
        else if(bttn == 'D')
            button = -2;
        else if(bttn == 'L')
            button = -3;
        else if(bttn == 'R')
            button = -4;
        else if(bttn == 'B')
            button = 1000;
        else if(bttn == 'E')
            button = 1001;
    }
}
